package bytes;

import java.io.File;
import java.io.IOException;

public class FileHelperTest {

	public static void main(String[] args) throws IOException {
		
		File file = new File( "沧海一声笑.mp3" ) ;
		
		File path = new File( "split" ) ;
		if( !path.exists() ) { // 如果不存在的话
			path.mkdir(); // 创建单层次目录
		}
		
		int size = 1 << 20 ; // 1M = 1024kb , 1kb = 1024 bytes.
		
		FileHelper.split( file , path , size);

	}

}
